import pytest
from common.get_driver import GetDriver
from page.page_web_login import PageWebLogin
from common.recordlog import logs
@pytest.fixture(scope="function")
def get_web_driver():
    driver = GetDriver.get_web_driver()
    login = PageWebLogin(driver)
    yield login
    driver.quit()


@pytest.fixture(autouse=True)
def start_test_and_end():
    logs.info('-------------接口测试开始--------------')
    yield
    logs.info('-------------接口测试结束--------------')